// component/housingResource/housingResource.js

Component({
  /**
   * 组件的属性列表
   */
  properties: {
    item: Object
  },

  /**
   * 组件的初始数据
   */
  data: {
    showShare: false
  },

  /**
   * 组件的方法列表
   */
  methods: {
    sharePickerCancel () {
      this.setData({showShare: false})
    },
    shareEvent () {
      this.setData({showShare: true})
      this.triggerEvent("change", this.data.item)
    },
    navigateTo() {
      const item = this.data.item
      console.log('navigateTo------------', item)
      wx.navigateTo({
        url: `/pages/park/house/detail?id=${item.id}&gardenId=${item.gardenId}`
      })
    }
  }
})
